<template>
  <full-page ref="fullPageRef" :options="options" id="fullpage">
    <div class="section">
      第一部分<el-button @click="handleClick">返回</el-button>
    </div>
    <div class="section">第二部分</div>
    <div class="section">第三部分</div>
  </full-page>
</template>
<script setup>
const fullPageRef = ref(null);
const options = ref({
  sectionsColor: ["#41b883", "#ff5f45", "#0798ec"],
  verticalCentered: false,
  navigation: true,
  scrollingSpeed: 500,
  lockAnchors: true,
  loopTop: true,
  loopBottom: true,
  continuousVertical: true,
});
import { useRouter } from "vue-router";
const router = useRouter();
const handleClick = () => {
  router.go(-1);
};
</script>
<style scoped lang="scss"></style>
